<style lang="less" scoped>
@import url('./style.less');
.txt {
  color: #3399fe;
}
.code {
  color: #666;
  font-size: 12px;
}
</style>
<template>
  <div class="box">
    <div class="box-title" @click="show=!show">
      <div class="box-title__label">注册信息</div>
      <div class="box-title__right">
        <!-- <span class="num">{{len||'无'}}</span> -->
        <i :class="cls"></i>
      </div>
    </div>
    <div class="box-content" v-show="show">
      <div class="panel">
        <div class="panel-title">
          <div class="panel-title__label">海关注册编码</div>
          <div class="panel-title__right">{{dt.reg_no || '-'}}</div>
        </div>
        <div class="panel-title">
          <div class="panel-title__label">注册海关</div>
          <div class="panel-title__right">{{dt.reg_gov || '-'}}</div>
        </div>
        <div class="panel-title">
          <div class="panel-title__label">行政区划</div>
          <div class="panel-title__right">{{dt.administrative_area || '-'}}</div>
        </div>
        <div class="panel-title">
          <div class="panel-title__label">经济区划</div>
          <div class="panel-title__right">{{dt.economic_area || '-'}}</div>
        </div>
        <div class="panel-title">
          <div class="panel-title__label">经营类别</div>
          <div class="panel-title__right">{{dt.trade_type || '-'}}</div>
        </div>
        <div class="panel-title">
          <div class="panel-title__label">特殊贸易区域</div>
          <div class="panel-title__right">{{dt.special_trade_area || '-'}}</div>
        </div>
        <div class="panel-title">
          <div class="panel-title__label">海关注销标志</div>
          <div class="panel-title__right">{{dt.cancellation_flag || '-'}}</div>
        </div>
        <div class="panel-title">
          <div class="panel-title__label">年报情况</div>
          <div class="panel-title__right">{{dt.annual_status || '-'}}</div>
        </div>
        <div class="panel-title">
          <div class="panel-title__label">注册日期</div>
          <div class="panel-title__right">{{dt.reg_date || '-'}}</div>
        </div>
        <div class="panel-title">
          <div class="panel-title__label">报关有效期</div>
          <div class="panel-title__right">{{dt.expire_date || '-'}}</div>
        </div>
        <div class="panel-title">
          <div class="panel-title__label">行业种类</div>
          <div class="panel-title__right">{{dt.industry_type || '-'}}</div>
        </div>
        <div class="panel-title">
          <div class="panel-title__label">跨境贸易电子商务类型</div>
          <div class="panel-title__right">{{dt.e_business_type || '-'}}</div>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  props: ['dt'],
  data() {
    return {
      show: false
    };
  },
  onUnload() {
    this.show = false;
  },
  computed: {
    cls() {
      const arrow = this.show ? 'icon-shangjiantou' : 'icon-tubiaozhizuo-';
      return `iconfont ${arrow}`;
    }
  },
  methods: {}
};
</script>
